package com.gzhryc.net_marketing.cloud.logistics;

public enum ELogisticsState {

    ExpressReceipt(1, "快递收件(揽件)"),DuringTransportation(2, "运输途中")
    ,SendingMail(3, "正在派件"),SignedIn(4, "已签收")
    ,DeliveryFailed(5, "派送失败"),DifficultParts(6, "疑难件")
    ,ReturnReceipt(7, "退件签收");

    private Integer index;
    private String note;

    ELogisticsState(Integer index, String note) {
        this.index = index;
        this.note = note;
    }

    public Integer index() {
        return index;
    }

    public String note() {
        return note;
    }

    public Integer getIndex() {
        return index;
    }

    public String getNote() {
        return note;
    }

    public static String note(Integer index) {
        ELogisticsState[] temp = ELogisticsState.values();
        for (int i = 0; i < temp.length; i++) {
            ELogisticsState item = temp[i];
            if (item.index.equals(index)) {
                return item.note;
            }
        }
        return null;
    }

}
